// 此处用于存放与商品详情有关的所有接口请求
import request from '@/utils/request'

// 获取商品详情数据
export const getDetail = (goodsId) => {
  return request.get('/goods/detail', {
    params: {
      goodsId
    }
  })
}

// 获取评价数据
export const getEvaluate = (goodsId, limit) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId,
      limit
    }
  })
}
